﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TPA.DataAccess;

namespace TVProgramAnalyst.TimeLine
{
    public partial class frmProgramEditor : Form
    {
        public frmProgramEditor()
        {
            InitializeComponent();
        }

        Program _program;
        //SaveMode _savemode;
        /// <summary>
        /// Get saved program
        /// </summary>
        public Program Program
        {
            get { return _program; }
            //set { _program = value; }
        }

        private void frmProgramEditor_Load(object sender, EventArgs e)
        {

        }

        public void SetProgram(Program p, SaveMode mode)
        {
            programEditor1.SetProgram(p,mode);
        }



        private void btnSave_Click(object sender, EventArgs e)
        {
            _program =programEditor1.SaveProgram();
            this.Close();
        }


    }
}
